package com.openbravo.ws.externalsales;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class OrderLine
  implements Serializable
{
  private static final long serialVersionUID = 9316058460611L;
  private String orderLineId;
  private double price;
  private String productId;
  private String taxId;
  private double units;
  private Object __equalsCalc = null;
  private boolean __hashCodeCalc = false;
  private static TypeDesc typeDesc = new TypeDesc(OrderLine.class, true);

  public OrderLine()
  {
  }

  public OrderLine(String paramString1, double paramDouble1, String paramString2, String paramString3, double paramDouble2)
  {
    this.orderLineId = paramString1;
    this.price = paramDouble1;
    this.productId = paramString2;
    this.taxId = paramString3;
    this.units = paramDouble2;
  }

  public String getOrderLineId()
  {
    return this.orderLineId;
  }

  public void setOrderLineId(String paramString)
  {
    this.orderLineId = paramString;
  }

  public double getPrice()
  {
    return this.price;
  }

  public void setPrice(double paramDouble)
  {
    this.price = paramDouble;
  }

  public String getProductId()
  {
    return this.productId;
  }

  public void setProductId(String paramString)
  {
    this.productId = paramString;
  }

  public String getTaxId()
  {
    return this.taxId;
  }

  public void setTaxId(String paramString)
  {
    this.taxId = paramString;
  }

  public double getUnits()
  {
    return this.units;
  }

  public void setUnits(double paramDouble)
  {
    this.units = paramDouble;
  }

  public synchronized boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof OrderLine))
      return false;
    OrderLine localOrderLine = (OrderLine)paramObject;
    if (paramObject == null)
      return false;
    if (this == paramObject)
      return true;
    if (this.__equalsCalc != null)
      return this.__equalsCalc == paramObject;
    this.__equalsCalc = paramObject;
    int i = ((this.orderLineId == null) && (localOrderLine.getOrderLineId() == null)) || ((this.orderLineId != null) && (this.orderLineId.equals(localOrderLine.getOrderLineId())) && (this.price == localOrderLine.getPrice()) && (((this.productId == null) && (localOrderLine.getProductId() == null)) || ((this.productId != null) && (this.productId.equals(localOrderLine.getProductId())) && (((this.taxId == null) && (localOrderLine.getTaxId() == null)) || ((this.taxId != null) && (this.taxId.equals(localOrderLine.getTaxId())) && (this.units == localOrderLine.getUnits())))))) ? 1 : 0;
    this.__equalsCalc = null;
    return i==1;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc)
      return 0;
    this.__hashCodeCalc = true;
    int i = 1;
    if (getOrderLineId() != null)
      i += getOrderLineId().hashCode();
    i += new Double(getPrice()).hashCode();
    if (getProductId() != null)
      i += getProductId().hashCode();
    if (getTaxId() != null)
      i += getTaxId().hashCode();
    i += new Double(getUnits()).hashCode();
    this.__hashCodeCalc = false;
    return i;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanSerializer(paramClass, paramQName, typeDesc);
  }

  public static Deserializer getDeserializer(String paramString, Class paramClass, QName paramQName)
  {
    return new BeanDeserializer(paramClass, paramQName, typeDesc);
  }

  static
  {
    typeDesc.setXmlType(new QName("/services/ExternalSales", "OrderLine"));
    ElementDesc localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("orderLineId");
    localElementDesc.setXmlName(new QName("", "orderLineId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("price");
    localElementDesc.setXmlName(new QName("", "price"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "double"));
    localElementDesc.setNillable(false);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("productId");
    localElementDesc.setXmlName(new QName("", "productId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("taxId");
    localElementDesc.setXmlName(new QName("", "taxId"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    localElementDesc.setNillable(true);
    typeDesc.addFieldDesc(localElementDesc);
    localElementDesc = new ElementDesc();
    localElementDesc.setFieldName("units");
    localElementDesc.setXmlName(new QName("", "units"));
    localElementDesc.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "double"));
    localElementDesc.setNillable(false);
    typeDesc.addFieldDesc(localElementDesc);
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.externalsales.OrderLine
 * JD-Core Version:    0.6.0
 */